<%@ page contentType="text/html;charset=utf-8" language="java"
	pageEncoding="UTF-8" import="java.util.Date"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
	<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<ul id="tree" class="filetree">
			<c:forEach items="${model.items}" var="item" varStatus="itemStatus">        
						                   <li><span class="folder" 
						                    onclick="selectcategory(1,'${item.currentCategory.id}','','','${item.currentCategory.categoryName}')"
						                   >${item.currentCategory.categoryLevel}、${item.currentCategory.categoryName}</span>  
						                   <c:if test="${item.isHasChild==1}">
						                   		<ul class="ul">
						                   			<c:forEach items="${item.childCategory}" var="item2" varStatus="itemStatus">     
						                   				 <li><span class="folder" 
						                   				 		 onclick="selectcategory(2,'${item2.currentCategory.id}','','${item2.currentCategory.categoryName}','${item.currentCategory.categoryName}')"
						                   				 	>${item2.currentCategory.categoryLevel}、${item2.currentCategory.categoryName}</span>
						                   				 	 <c:if test="${item2.isHasChild==1}">
						                   				 	 	<ul class="ul">
						                   				 	 		<c:forEach items="${item2.childCategory}" var="item3" varStatus="itemStatus">   
						                   				 	 			 <li><span class="folder"  
						                   				 	 			 onclick="selectcategory(3,'${item3.currentCategory.id}','${item3.currentCategory.categoryName}','${item2.currentCategory.categoryName}','${item.currentCategory.categoryName}')"
						                   				 	 			 
						                   				 	 			 >${item3.currentCategory.categoryLevel}、${item3.currentCategory.categoryName}</span> 
						                   				 	 		</c:forEach>
																</ul>
						                   				 	 </c:if>
						                   				 </li>   
						                   			</c:forEach>
						                   		</ul>
						                   </c:if>   
						                   </li>       
							        </c:forEach>

 </ul>